﻿using System;
using Reflector.CodeModel;

namespace CallGraphExtractor.CecilAdapter
{
    class AssemblyLoader : IAssemblyManager
    {
        #region IAssemblyManager Members

        public IAssemblyCollection Assemblies
        {
            get { throw new NotImplementedException(); }
        }

        public event EventHandler AssemblyLoaded;

        public event EventHandler AssemblyUnloaded;

        public IAssemblyComparer Comparer
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public IAssembly Load(IAssemblyReference value, string localPath)
        {
            throw new NotImplementedException();
        }

        public IAssembly LoadFile(string location)
        {
            return new Assembly(Mono.Cecil.AssemblyDefinition.ReadAssembly(location), this);
        }

        public IAssemblyResolver Resolver
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public void SaveFile(IAssembly value, string location)
        {
            throw new NotImplementedException();
        }

        public bool Symbols
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public void Unload(IAssembly value) { }

        #endregion
    }
}
